﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Threading;
using System.Windows;

namespace RiskMan.Config
{
    public static class ExtensionMethods
    {

        private static Action EmptyDelegate = delegate( ) { };


        public static void Refresh ( this UIElement uiElement )
        {
            uiElement.Dispatcher.Invoke( DispatcherPriority.Render, EmptyDelegate );
        }
    }
}
